package cn.ulc.store.entity.user;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.core.annotatoin.Table;
import cn.ulc.store.entity.base.BaseModel;

import java.math.BigDecimal;
import java.util.Date;

/*
* 
* gen by Jin 2019-06-15
*/
@Builder(toBuilder = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name="user_coupon")
public class UserCoupon extends BaseModel {

	/*
	* 是否需要满减
	*/
	private Boolean isFull;
	private BigDecimal fullAmount;
	/*
	* 面值
	*/
	private BigDecimal amount;

	private String userScope;
	/*
	 * 商品
	 */
	private Long goodsId;
	private Long goodsTypeId;
	/*
	* 编码
	*/
	private String code;
	private Long companyId;
	private Long couponId;


	private Long memberId;
	/*
	* 状态
	*/
	private String status;
	//是否已使用
	private Boolean isUsed;
	//关联订单
	private Long orderId;
	/*
	* 标签名称
	*/
	private String title;
	private Long wxUserId;
	private Boolean isForever;
	private Date beginTime;
	private Date endTime;

	private String remark;

	private String goodsName;
	private String goodsTypeName;

}
